﻿
@{
    Layout = null;
}

<!DOCTYPE html>
<html>
<head>
    <title>生成工资条</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <script type="text/javascript">

        function SaveAs() {
            pageofficectrl.ShowDialog(3);
        }
        function PrintSet() {
            pageofficectrl.ShowDialog(5);
        }
        function PrintFile() {
            pageofficectrl.ShowDialog(4);
        }
        function Close() {
            pageofficectrl.CloseWindow()
        }
        function IsFullScreen() {
            pageofficectrl.FullScreen =
                !pageofficectrl.FullScreen;
        }

        function OnPageOfficeCtrlInit() {
            pageofficectrl.AddCustomToolButton("另存为", "SaveAs", 12);
            pageofficectrl.AddCustomToolButton("打印设置", "PrintSet", 0);
            pageofficectrl.AddCustomToolButton("打印", "PrintFile", 6);
            pageofficectrl.AddCustomToolButton("全屏/还原", "IsFullScreen", 4);
            pageofficectrl.AddCustomToolButton("-", "", 0);
            pageofficectrl.AddCustomToolButton("关闭", "Close", 21);
        }
    </script>
</head>
<body>
    <div style="width: auto; height: 98vh;">
        @Html.Raw(ViewBag.poCtrl)
    </div>
</body>
</html>